module.exports = function AuthCheck(req, res, next) {
    const { nickname } = req.body
    if (!nickname) {
        res.json({code: 401, error: true, msg: '请填写昵称'})
    } else {
        next()
    }
}